package edy.ynmd.cms.service;

import edy.ynmd.cms.model.*;

import java.util.List;

public interface ManageService {

    public boolean addNews(News news);
    public boolean deletenews(String id);
    public boolean updateNews(News news);
    public News getNews(String id);
    public List<News> getNewsList();


    public boolean addCarousel(Carousel carousel);
    public boolean delteCarousel(String id);
    public boolean updateCarousel(Carousel carousel);
    public Carousel getCarousel(String id);
    public List<Carousel> getCarouselList();


    public Users findUserByUsernameAndPassword(String username,String password);

    public String getCurrentUserId();
    public String getCurrentUserRole();


    //科目表

    public boolean addBook(Book book);
    public boolean deleteBook(String id);
    public boolean updateBook(Book book);
    public Book getBook(String id);
    public List<Book> getBookList();


    //课程表

    public boolean addCourse(Course course);
    public List<Course> getCourseByBook(String bookid);


}
